using System;
using Coderoom.ScrumPlanner.Data;
using Coderoom.ScrumPlanner.Data.Repositories;
using Xunit;

namespace Coderoom.ScrumPlanner.Tests.Unit.ServiceTests
{
	public class ServiceTests
	{
		//private readonly ServiceProxy service;

		//public ServiceTests()
		//{
		//    var repository = new FakeProjectRepository();
		//    service = new ServiceProxy(repository);
		//}

		[Fact]
		public void Ctor_throws_ArgumentNullException_when_null_is_passed()
		{
			// act
			Assert.Throws<ArgumentNullException>(() => new ServiceProxy(null));
		}

		#region Nested type: ServiceProxy

		private class ServiceProxy : Service<Repository>
		{
			public ServiceProxy(Repository repository) : base(repository) {}
		}

		#endregion
	}
}